#include "mainwindow.h"
#include "startmenu.h"
#include <QApplication>

int main(int argc, char *argv[]) {
    QApplication a(argc, argv);

    StartMenu menu;
    MainWindow w;

    // 使用 qOverload 解决重载歧义
    QObject::connect(&menu, &StartMenu::gameStarted, &w, &MainWindow::showGame);

    menu.show();
    return a.exec();
}
